﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IISAdmin
{
    public enum AdminACL
    {
        MD_ACR_READ = 0x00000001, //Enable read access to all properties. 
        MD_ACR_WRITE = 0x00000002, //Enable write access to all properties. 
        MD_ACR_ENUM_KEYS = 0x00000008, //Enable key enumeration. 
        MD_ACR_RESTRICTED_WRITE = 0x00000020, //See Remarks, following this table. 
        MD_ACR_UNSECURE_PROPS_READ = 0x00000080, //Enable read access to properties that do not have the METADATA_SECURE attribute set. 
        MD_ACR_WRITE_DAC = 0x00040000 //Enable write access to AdminACL for security descriptor creator. 
    }
    public class IISFlags
    {
        //lFlags
        internal const uint MD_BACKUP_OVERWRITE = 0x00000001;
        internal const uint MD_BACKUP_SAVE_FIRST = 0x00000002;
        internal const uint MD_BACKUP_FORCE_BACKUP = 0x00000004;

        //lVersion
        internal const uint MD_BACKUP_NEXT_VERSION = 0xffffffff;
        internal const uint MD_BACKUP_MAX_VERSION = 9999;

        internal const uint MD_BACKUP_HIGHEST_VERSION = 0xfffffffe;
    }
}
